From: | Allan Odgaard |
Date: | 05 Aug 99 at 11:00:53 |
Subject: | Re: Drawing images on Intution |
From: Allan Odgaard <Duff@DIKU.DK>
On 04-Aug-99, Steffen wrote:
> [...] You'll need to copy the display before each
> animation starts though, but not for every blit.
I know that - it was the initial blit I was refering to, this will make your
solution slow.
To re-generate the background with a few blits (one for each visible card)
should not be a problem, in principle it's actually very similar to the
"LayerDemo" program you can find at my homepage, except that this is one is
probably more "flexible", so I do know what I'm talking about!
> [...] As i pointed out '....You can allso use BltBitMap() and use
> RPort->BitMap, provided your graphics don't exceed the bitmap boundaries'.
It's not (only) the boundaries which is the problem. If another window covers
your window then the bitmap will also hold that window, so blitting to it will
destroy windows ontop of yours, blitting from it will give you the wrong data.
In the latter case this is only a problem with smart-refresh, because the
actual data does not exist for simple-refresh, which is also a problem for
your double-buffer suggestion.
Regards Allan